We want the basketball to fall to the floor and then bounce, but only when we're ready.

  • Go to and drag Set Gravity into your program.
  • From Physics, drag Set Bounce into your program.
  • Use Sprite Gravity Off to turn off gravity for the ball.
  • Use another Sprite Gravity Off to turn off gravity for the net.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)